|
In computer humor, a write-only language is a programming language with syntax (or semantics) sufficiently dense and bizarre that any routine of significant size is too difficult to understand by other programmers and cannot be safely edited.〔(【引用サイトリンク】url=http://www.jargon.net/jargonfile/w/write-onlylanguage.html )〕 Likewise, write-only code is source code so arcane, complex, or ill-structured that it cannot be reliably modified or even comprehended by anyone with the possible exception of the author.〔 A more rarely used term is read-only language, which refers to systems with so many boundary conditions that the code can only be written through constant experimentation and not from first principles. The resulting code is perfectly readable by other programmers, but any attempt to duplicate it in another context will fail. The canonical example of a read-only language is AppleScript.〔(【引用サイトリンク】url=http://c2.com/cgi/wiki?ReadOnlyLanguage )〕 == Description == Write-only language is also referred to as line noise, suggesting that the code looks like spurious characters from signal noise in the communication line. In such a language it would be more difficult to read, understand, and modify existing source code than to start over and rewrite it from scratch. Languages that are often derided as write-only include APL, DDT, older versions of BASIC, Perl,〔(【引用サイトリンク】url=http://c2.com/cgi/wiki?WriteOnlyLanguage )〕 Forth, TECO, Mathematica and regular expression syntax used in various languages. Attributes that these languages have in common include a large set of operators and a syntax which encourages, or at least permits, the writing of very dense code. It is also a common feature of esoteric programming languages that strive to have obfuscated code, such as INTERCAL. A classic example of a write-only program is Conway's Game of Life as written in APL2: ⍎'⎕',∈N⍴⊂S←'←⎕←(3=T)∨M∧2=T←⊃+/(V⌽"⊂M),(V⊖"⊂M),(V,⌽V)⌽"(V,V ←1¯1)⊖"⊂M' 抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)』 ■ウィキペディアで「Write-only language」の詳細全文を読む スポンサード リンク
|